<template>
<el-dialog
  title="提示"
  :visible.sync="visible"
  width="30%"
  >
    <el-tree
    :data="treeData"
    show-checkbox
    default-expand-all
    node-key="id"
    ref="tree"
    highlight-current
    :props="{
            children: 'children',
            label: 'label'
        }"
    >
    </el-tree>

</el-dialog>
</template>

<script>
export default {
data() {
    return {
        visible: false,
        treeData: [
          {
          id: 1,
          label: '一级 1',
        }, 
        {
          id: 2,
          label: '一级 2',
        }, 
        {
          id: 3,
          label: '一级 3',
          children: []
        }],
      };
    },
    methods: {
      open(row) {
        let arr = this.$store.getters.permission_routes
        // console.log(arr)
        // this.visible = true
      }
    }
};
</script>

<style>

</style>